#include <cstdlib>
#include "Path.h"
#include "AStar.h"

Path::Path()
{
    //ctor
}

Path::~Path()
{
    //dtor
}

t_count Path::h(const Location& from, const Location& to)
{
    return std::abs(from.row - to.row) + std::abs(from.col - to.col);
}

void Path::Find(const Location& from, const Location& to, t_path& out)
{
    Location resolution(10,10);
    AStar<Location> alg(resolution);

    alg.Find(from,to,out);
}

